package com.edu.eduservice.client.OpenFeign;

import com.edu.commonutils.R;
import com.edu.eduservice.client.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName VodClientImpl
 * @date 2022/9/21 15:34
 * @Version 1.0
 */
//服务降级
@Component
public class VodClientImpl implements VodClient {
    @Override
    public R del(String id) {
        return R.error();
    }

    @Override
    public String getVideoPath(String id) {
        return "删除视频出错了";
    }

    @Override
    public R delmany(List<String> vidList) {
        return R.error().message("删除多个视频出错了");
    }
}
